package designPattern.creationpattern.prototype.prototypeDemo;

/**
 * @author wei.zhao
 * @description:
 * @date 2021年12月09日 16:13
 */
public class Client {

    public static void main(String[] args) {
        Resume resume = new Resume();
        resume.setName("张三");
        resume.setJob("java开发");
        resume.setSalary("面议");
        System.out.println(resume.hashCode() + resume.toString());
        for (int i = 1; i <= 10; i++) {
            //每次不需要自己一点点创建对象了
            Resume resumeTemp = resume.clone();
            System.out.println(resumeTemp.hashCode() + resume.toString());
        }
    }
}
